<div id="yeardate">
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title" id="ntModalLabel">日记账-{$date}年清单</h4>
    </div>
    <div class="modal-body">
        <div class="row clearfix">
            <div class="col-md-12">
                <table class="table table-striped">
                    <tbody>
                    <tr>
                        <td>{:lang('account_subject')}</td>
                        <td>{$name|default=''}</td>
                    </tr>
                    <tr>
                        <td>{:lang('inventory')}</td>
                        <td>
                            <table class="table table-striped table-hover ntTable">
                                <tbody>
                                {volist name="data" id="vo"}
                                <tr>
                                    <td align="center">{$vo.happen_year}</td>
                                    <td class="text-right"><span class="{$color}">{$sign|default=''}{{formatUnit({$vo.amount},'CNY')}}</span> <span class="unit">CNY</span>
                                    </td>
                                    <td class="text-right">
                                        <a ></a>
                                        <a v-if="adminauth_ids.indexOf(176)!=-1 || adminauth_ids.indexOf(177)!=-1 || adminauth_ids.indexOf(178)!=-1" href="{:url('/admin/finance/journalmonthyear',['account_id'=>$vo.account_id,'happen_day'=>$vo.happen_day,'month'=>'1'])}" class='btn btn-sm btn-primary'
                                           data-toggle="modal"
                                           data-target="#month_detailModal"><span class="fa fa-search-plus"></span> {:lang('details')}</a>
                                    </td>
                                </tr>
                                {/volist}
                                </tbody>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td>{:lang('total')}</td>
                        <td class="text-right"><span class="{$color}">{{formatUnit({$summoney},'CNY')}}</span> <span class="unit">CNY</span>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
    <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal"><span
                class="glyphicon glyphicon-remove"></span>{:lang('close')}
        </button>
    </div>
</div>
<script>
    var table = new Vue({
        el: '#yeardate',
        data: {
            adminauth_ids:$('#adminauth_ids').text(),//用户当前页面的权限
        },
        methods: {
            formatUnit:formatUnit,
        }
    })
</script>